﻿using EYCmsAdmin.Domain.Models;
using EYCmsAdmin.Presentation.Models;
using EYCmsAdmin.Presentation.Models.BaseModels;

namespace EYCmsAdmin.Presentation.Mappers
{
    public static class UserInfoMapper
    {
         public static void MapTo(this UserInfoModel source, UserInfo userInfo)
         {
             userInfo.DateBirth = source.DateBirth;
             userInfo.Gender = source.Gender;
             userInfo.Name = source.Name;
             userInfo.Surname = source.Surname;
             userInfo.Id = source.Id;
         }
    }
}